import std.stdio;
import std.regex;

void main()
{
    auto r = regex(r"\/(?P<d>[0-9a-z]{1})\/(?P<d2>[0-9a-z]{2})\/(?P<imagename>\w+\.\w+)","s");
    auto mt = matchFirst("/2/34/ddd.jpg", r);
    if (mt)
    {
        writeln("over!");
    }
    else
    {
         writeln("error!");
    }
}
